import logging

logging.basicConfig(level=logging.WARNING,filename='runlog.log',encoding='utf-8',
                  format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s'
)

logging.debug('debug info')
logging.info('info info')
logging.warning('warning info')
logging.critical('critical info')
